package com.jinhui.tbsdemo;

import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;

public class TestFragmentActivity extends Activity {
    private FragmentManager fm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_fragment);
        fm = getFragmentManager();
        FragmentTransaction fragmentTransaction = fm.beginTransaction();
        DataFragmentSix dataFragmenttfive = new DataFragmentSix();
        fragmentTransaction.add(R.id.fragment_container, dataFragmenttfive);
        fragmentTransaction.commit();
    }
}
